<?php
include "header.php";

if (!isset($_SESSION["username"])){
	echo "<script>window.location.href='login.php'</script>";
}
else{
	unset($_SESSION["username"]);
}
?>
<script>change_picture("admin");</script>
<script>
function jump(){
	window.location.href='managehome.php';
}
window.setTimeout("jump();",3000);
</script>
<div>
You have log out. Jumping to log in page in 3 seconds...<br />
<a href="managehome.php">Click here to jump immediately</a>
</div>
<?php
include "footer.php";